import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import manage from '@/views/manage'

import CalendarMap from '@/views/manage/tool-comp/CalendarMap'
import Drags from '@/views/manage/tool-comp/Drags'
import Media from '@/views/manage/tool-comp/Media'

import NumberRollMap from '@/views/manage/animations/numberRollMap'


Vue.use(Router)

export default new Router({
  routes: [
    {path:'*',redirect:'/CalendarRem'},//默认路由
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/',
      name:'manage',
      component:manage,
      children:[
        {path:'/CalendarMap',name:'CalendarMap',component:CalendarMap},
        // {path:'/CalendarOrigin',name:'CalendarOrigin',component:CalendarOrigin},
        //animation
        {path:'/NumberRollMap',name:'NumberRollMap',component:NumberRollMap},
        {path:'/Drags',name:'Drags',component:Drags},
        {path:'/Media',name:'Media',component:Media},
      ]
    }
  ]
})
